package com.tbr.blockchain.model;

public class TransactionInput {
    //前一个交易的ID；
    private String txId;
    private int value;
    private String signature;
    private String publicKey;

    public TransactionInput() {
    }

    public TransactionInput(String txId, int value, String signature, String publicKey) {
        this.txId = txId;
        this.value = value;
        this.signature = signature;
        this.publicKey = publicKey;
    }

    /**
     * 获取
     * @return txId
     */
    public String getTxId() {
        return txId;
    }

    /**
     * 设置
     * @param txId
     */
    public void setTxId(String txId) {
        this.txId = txId;
    }

    /**
     * 获取
     * @return value
     */
    public int getValue() {
        return value;
    }

    /**
     * 设置
     * @param value
     */
    public void setValue(int value) {
        this.value = value;
    }

    /**
     * 获取
     * @return signature
     */
    public String getSignature() {
        return signature;
    }

    /**
     * 设置
     * @param signature
     */
    public void setSignature(String signature) {
        this.signature = signature;
    }

    /**
     * 获取
     * @return publicKey
     */
    public String getPublicKey() {
        return publicKey;
    }

    /**
     * 设置
     * @param publicKey
     */
    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String toString() {
        return "TransactionInput{txId = " + txId + ", value = " + value + ", signature = " + signature + ", publicKey = " + publicKey + "}";
    }
}
